/*
 * Copyright © 2017-2018 Cask Data, Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
 * use this file except in compliance with the License. You may obtain a copy of
 * the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
 */
@import "../../../styles/variables.scss";
$close-btn-size: 13px;
.modal.can-edit-page-while-open {
  height: auto;
}

.global-alert {
  &.modal-dialog {
    margin-top: 48px;
    width: 100%;
    max-width: 100%;

    .modal-content {
      border-radius: 0;
      .success,
      .error,
      .info {
        padding: 10px;
        display: flex;
        color: white;
        justify-content: space-between;
        align-items: center;
      }
      .success {
        background-color: $brand-success;
      }
      .error {
        background-color: $brand-danger;
      }
      .info {
        background-color: $brand-info;
      }
      .warning {
        padding: 10px;
        display: flex;
        color: white;
        justify-content: space-between;
        align-items: center;
        background-color: $brand-warning;
      }
      .message {
        max-width: calc(100% - #{$close-btn-size});
        padding-right: 5px;
      }
      .icon-close {
        cursor: pointer;
        font-size: $close-btn-size;
      }
    }
  }
}
